/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package controllers.process;

import controllers.entity.CanBo;
import java.util.List;
import models.CanBoDAO;

/**
 *
 * @author HoaDuyen
 */
public class CanBoProcess {
    private static CanBoDAO canBoDAO = new CanBoDAO();
    
   /* public CanBo getCanBoByMaCB(int id) {
        return bookDAO.getBookByID(id);
    }
    */
    public List<CanBo> getAllBookByCateID() {
        return canBoDAO.getAllCanBo();
    }
    public static int getCountCanBo(){
        return canBoDAO.getCountCanBo();
    }
    public static boolean insertCanBo(CanBo x) {
        return canBoDAO.InsertCanBo(x);
    }
    ///////////////////
    public static boolean updateCanBo(CanBo x, int MaCanBo){
        return canBoDAO.UpdateCanBo(x, MaCanBo);
    }
    
    public static boolean  deleteCanBo(int MaCanBo){
        return canBoDAO.DeleteCanBo(MaCanBo);
    }
}
